﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Qing.QPwdBox
{
    public partial class FrmPassword : Form
    {
        public static FrmPassword Self { set; get; }

        public FrmPassword()
        {
            InitializeComponent();
            FrmPassword.Self = this;
            this.Opacity = 0;
        }

        private void FrmPassword_Load(object sender, EventArgs e)
        {

        }

        private void FrmPassword_Shown(object sender, EventArgs e)
        {
            if (new FrmLogin().ShowDialog() != DialogResult.OK)
            {
                this.Close();
                return;
            }
            this.Opacity = 1;
            ni.Icon = this.Icon;
        }
    }
}
